package com.bac.javabeans;

import java.io.Serializable;
import java.math.BigDecimal;
import java.sql.Date;
import java.util.List;

public class GasStationDetail implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 7319993216957940887L;
	
	
	private String closingTime;
	private List<GasStationDetail.Oil> oils;
	private String openingTime;
	private boolean acceptingUnionPayCard ;
	private boolean autoRepairService ;
	private boolean cardIssuing ;
	private boolean cardLoading ;
	private boolean carWashingService ;
	private boolean invoicing ;
	private boolean promoting ;
	private boolean shoppingService ;
	private int rateTimes;
	private double totalRating;
	
	
	public GasStationDetail() {
		super();
	}


	public GasStationDetail(String closingTime, List<Oil> oil, String openingTime,
			boolean acceptingUnionPayCard, boolean autoRepairService,
			boolean cardIssuing, boolean cardLoading,
			boolean carWashingService, boolean invoicing, boolean promoting,
			boolean shoppingService, int rateTimes, double totalRating) {
		super();
		this.closingTime = closingTime;
		this.oils = oil;
		this.openingTime = openingTime;
		this.acceptingUnionPayCard = acceptingUnionPayCard;
		this.autoRepairService = autoRepairService;
		this.cardIssuing = cardIssuing;
		this.cardLoading = cardLoading;
		this.carWashingService = carWashingService;
		this.invoicing = invoicing;
		this.promoting = promoting;
		this.shoppingService = shoppingService;
		this.rateTimes = rateTimes;
		this.totalRating = totalRating;
	}


	public String getClosingTime() {
		return closingTime;
	}


	public void setClosingTime(String closingTime) {
		this.closingTime = closingTime;
	}


	public List<GasStationDetail.Oil> getOil() {
		return oils;
	}


	public void setOil(List<GasStationDetail.Oil> oil) {
		this.oils = oil;
	}


	public String getOpeningTime() {
		return openingTime;
	}


	public void setOpeningTime(String openingTime) {
		this.openingTime = openingTime;
	}


	public boolean isAcceptingUnionPayCard() {
		return acceptingUnionPayCard;
	}


	public void setAcceptingUnionPayCard(boolean acceptingUnionPayCard) {
		this.acceptingUnionPayCard = acceptingUnionPayCard;
	}


	public boolean isAutoRepairService() {
		return autoRepairService;
	}


	public void setAutoRepairService(boolean autoRepairService) {
		this.autoRepairService = autoRepairService;
	}


	public boolean isCardIssuing() {
		return cardIssuing;
	}


	public void setCardIssuing(boolean cardIssuing) {
		this.cardIssuing = cardIssuing;
	}


	public boolean isCardLoading() {
		return cardLoading;
	}


	public void setCardLoading(boolean cardLoading) {
		this.cardLoading = cardLoading;
	}


	public boolean isCarWashingService() {
		return carWashingService;
	}


	public void setCarWashingService(boolean carWashingService) {
		this.carWashingService = carWashingService;
	}


	public boolean isInvoicing() {
		return invoicing;
	}


	public void setInvoicing(boolean invoicing) {
		this.invoicing = invoicing;
	}


	public boolean isPromoting() {
		return promoting;
	}


	public void setPromoting(boolean promoting) {
		this.promoting = promoting;
	}


	public boolean isShoppingService() {
		return shoppingService;
	}


	public void setShoppingService(boolean shoppingService) {
		this.shoppingService = shoppingService;
	}


	public int getRateTimes() {
		return rateTimes;
	}


	public void setRateTimes(int rateTimes) {
		this.rateTimes = rateTimes;
	}


	public double getTotalRating() {
		return totalRating;
	}


	public void setTotalRating(double totalRating) {
		this.totalRating = totalRating;
	}


	public class Oil implements Serializable {
		/**
		 * 
		 */
		private static final long serialVersionUID = 1L;
		
		private String name;
		private BigDecimal price;
		private boolean ethanolContaining;

		public String getName() {
			return name;
		}

		public void setName(String name) {
			this.name = name;
		}

		public BigDecimal getPrice() {
			return price;
		}

		public void setPrice(BigDecimal price) {
			this.price = price;
		}

		public boolean isEthanolContaining() {
			return ethanolContaining;
		}

		public void setEthanolContaining(boolean ethanolContaining) {
			this.ethanolContaining = ethanolContaining;
		}

		public Oil(String name, BigDecimal price,
				boolean ethanolContaining) {
			super();
			this.name = name;
			this.price = price;
			this.ethanolContaining = ethanolContaining;
		}

		public Oil() {
			super();
		}

	}
}

